package cn.kgc.tangcco.controller;

import cn.kgc.tangcco.model.ResponseText;
import cn.kgc.tangcco.model.ResultCode;
import cn.kgc.tangcco.pojo.Dujitang;
import cn.kgc.tangcco.service.DujitangService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/12/29 16:28
 */
@RestController
@RequestMapping(value = "/dujitang")
public class DujitangController {
    @Autowired
    private DujitangService dujitangService;

    @RequestMapping("/query")
    public ResponseText<Dujitang> query(){
        return dujitangService.queryRandom();
    }
}
